package com.cyh.core.login.repository;


import com.cyh.core.framework.repository.base.DefaultRepository;
import com.cyh.core.login.entity.UserInfo;

import org.springframework.data.jpa.repository.Query;

import javax.annotation.Resource;


@Resource
public interface UserInfoRepository  extends DefaultRepository<UserInfo, Integer> {

    @Query(value = "select * from userinfo where uid =? ",nativeQuery = true)
    public UserInfo findByUid (Integer uid);

}
